From 21e94a460829ed3fb373180c1dec171638c1347f Mon Sep 17 00:00:00 2001 From: Ian Connolly Date: Thu, 13 Nov 2014 19:12:08 +0000 Subject: [PATCH] Missed backtick fix --- src/bin/cargo.rs | 2 +- tests/test_cargo.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bin/cargo.rs b/src/bin/cargo.rs index 28a0addc6..baeb90db3 100644 --- a/src/bin/cargo.rs +++ b/src/bin/cargo.rs @@ -154,7 +154,7 @@ fn execute_subcommand(cmd: &str, args: &[String], shell: &mut MultiShell) { Some(command) => command, None => { let msg = match find_closest(cmd) { - Some(closest) => format!("No such subcommand\n\n\tDid you mean ``{}''?\n", closest), + Some(closest) => format!("No such subcommand\n\n\tDid you mean `{}`?\n", closest), None => "No such subcommand".to_string() }; return handle_error(CliError::new(msg, 127), shell) diff --git a/tests/test_cargo.rs b/tests/test_cargo.rs index d70948ccb..c2794ff80 100644 --- a/tests/test_cargo.rs +++ b/tests/test_cargo.rs @@ -55,7 +55,7 @@ test!(find_closest_biuld_to_build { execs().with_status(127) .with_stderr("No such subcommand -Did you mean ``build''? +Did you mean `build`? ")); }) @@ -71,4 +71,3 @@ test!(find_closest_dont_correct_nonsense { .with_stderr("No such subcommand ")); }) - -- 2.30.2